package service.local;

import java.util.List;

import javax.ejb.Local;

import model.Candidate;
import model.Comment;
import service.ServiceException;
@Local
public interface CandidateService {
	
	Candidate insertCandidate(Candidate candidate);

	Candidate updateCandidate(Candidate candidate);
	
	Candidate getCandidateByID(Long ID);

	void deleteCandidate(Candidate candidate);

	List<Candidate> getAll();
	
	List<Comment> getCommentsForCandidate(Long id);

	void addCommentToCandidate(Long id, Comment c);

	Candidate getCandidateByName(String string);
}
